<!-- 我的爱车 页面-->
<include file='Common:head'/>
<form id="upForm">
<div class="add_car_view box">
	<div class="">后台账号:&nbsp;{$info.admin_name}</div>
	<div class="">设置后台密码&nbsp;:&nbsp;<input type="password" class="password" name="password" /></div>
	
	<div class="button"><input type="button" value="提交"/></div>
</div>
</form>
<script type="text/javascript">
$('input[type=button]').click(function(){
	var formData = new FormData($( "#upForm" )[0]);   
    $.ajax({    
         url: "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/set_server_admin')}" ,  /*这是处理文件上传的servlet*/  
         type: 'POST',    
         data : formData,    
         async: false,    
         cache: false,    
         contentType: false,    
         processData: false,    
         success: function (returndata) {    
        	 if(returndata.status==1){
        		 layer.open({
      				style:'font-size:3rem;',
      				content:returndata.info,
      				time:2,
      				end:function(){
     					window.location.href = returndata.url;
     		 		}
      			});
        	 }else{
        		 layer.open({
       				style:'font-size:3rem;',
       				content:returndata.info,
       				time:2,
       			});
        	 }
         }
    }); 
});


$(document).ready(function(){
	$('title').html('設置店鋪基本訊息');
	$('.header .title').html('設置店鋪基本訊息');
	$('.header .left').html('<img src="__PRIVATE__/images/left.png" style="width:55%"/>');
	$('.header .right').html('');
	$('.header .left').click(function(){
		//返回-我的爱车
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/set_index')}";
	});
});


</script>
<include file='Common:footer'/>
